import req from '../utils/req'

/**
 * 设备状态统计
 * @returns {*}
 */
export function getStatistics(params) {

    return req.post('/produce/products/deviceStatistics',params)

}



/**
 * 获得最近5炉的批次列表
 * @returns {*}
 */
export function getLatest5BatchNos(deviceId) {

  return req.post('/analyze/processDataAnalysis/getBatchNo',{
    deviceId
  })

}



/**
 * 过程数据分析
 * @returns {*}
 */
export function getProcessDataAnalysis(batchId1,batchId2, ipcParam,param) {

  return req.post('/analyze/processDataAnalysis/list',{
    batchId1,
    batchId2,
    ipcParam,
    param
  })

}

/**
 * 设备运行周期，能耗分析
 * @returns {*}
 */
export function getDeviceRunningCycleAndEnergyAnalysis(params) {

  return req.post('/analyze/equipmentoperationanalysis/list',params)

}

/**
 * 工艺参数列表
 * @returns {*}
 */
export function getParamAnalysisList(params) {

  return req.post('/analyze/paramAnalysis/list',params)

}
